package com.tust.app.service.impl;

import java.util.List;
import javax.annotation.Resource;

import com.tust.app.dao.VideoMapper;
import com.tust.app.domain.FileEntity;
import org.springframework.stereotype.Service;

import com.tust.app.service.VideoService;

@Service
public class VideoServiceImpl implements VideoService {
    @Resource
    private VideoMapper videoMapper;

    @Override
    public void saveFile(FileEntity fileEntity) {
        videoMapper.saveFile(fileEntity);
    }

    @Override
    public List<FileEntity> findAll() {
        return videoMapper.findAll();
    }

    @Override
    public FileEntity findById(int id) {
        return videoMapper.findById(id);
    }

    @Override
    public void deleteVideoById(int id) {
        videoMapper.deleteVideoById(id);
    }
}